<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="referrer" content="always">
<title>哔哩哔哩弹幕视频网 - ( ゜- ゜)つロ 乾杯~ - bilibili</title>




<script type="text/javascript" src="//static.hdslb.com/js/jquery.min.js"></script>

<script type="text/javascript"
	src="//static.hdslb.com/plugins/resource/qrcode.min.js"></script>

<script type="text/javascript"
	src="//static.hdslb.com/plugins/resource/jsencrypt.min.js"></script>
<link
	href="//s1.hdslb.com/bfs/static/passport/static/css/login.2773a5672615b2b51bd57b576eb2d68f.css"
	rel="stylesheet">


<script charset="utf-8"
	src="//s1.hdslb.com/bfs/seed/log/report/5.66a9b.function.chunk.js"
	crossorigin="anonymous"></script>

<script charset="UTF-8" async=""
	src="https://static.geetest.com/static/js/fullpage.9.0.2.js"></script>
<link
	href="https://static.geetest.com/static/wind/style_https.1.5.8.css"
	rel="stylesheet">

</head>
<body>
	<div id="login-app">
		<div data-v-2c844fd9="" class="login-app bottom-filling">

			<div data-v-2c844fd9="">
				<div data-v-2c844fd9="" class="top-banner">
					<img
						src="//s1.hdslb.com/bfs/static/passport/static/img/rl_top.35edfde.png">
				</div>
				<div data-v-2c844fd9="" class="title-line">
					<span class="tit" style="font-size: 38px;">登录</span>
				</div>
				<div data-v-2c844fd9="" class="login-box clearfix">
					<div data-v-2c844fd9="" class="login-left">
						<div data-v-2c844fd9="" class="qrcode-login">
							<div class="qrcode-con">
								<i class="tv-icon"></i>
								<div class="qrcode-box">
									<div class="qrcode-tips"></div>
									<div class="qrcode-img"
										title="https://passport.bilibili.com/qrcode/h5/login?oauthKey=3240b60c4db891d17b54a02b7869bff8">
										<canvas width="140" height="140" style="display: none;"></canvas>
										<img
											src=""
											style="display: block;">
									</div>
									<!---->
								</div>
							</div>

						</div>
					</div>
					<div data-v-2c844fd9="" class="line"></div>
					<div data-v-2c844fd9="" class="login-right">
						<form id="log" action="ajaxuser.do?op=login" method="post">
							<div data-v-2c844fd9="" class="form-login">
								<div id="geetest-wrap" class="input-box">
									<div>
										<div class="type-tab">
											<span class="active">密码登录</span> <span class="">短信登录</span>
										</div>
										<div>
											<div class="item username status-box">
												<input type="text" value="" placeholder="你的手机号/邮箱" 
													id="login-username" maxlength="50" autocomplete="off"
													class="" name="username" required="required"> <span class="status"></span>
												<div class="text clearfix">
													<p class="tips"></p>
												</div>
												<!---->
											</div>
											<div class="item password status-box">
												<input type="password" placeholder="密码" id="login-passwd"
													name="password" class="" required="required"> <span class="status"></span>
												<div class="text clearfix">
													<p class="tips"></p>
												</div>
											</div>
											<!---->
											<div class="item gc clearfix">
												<!---->
											</div>
										</div>
										<div style="display: none;">

											<div class="form-group status-box">
												<div class="code-input input-width el-input">
													<!---->
													<input type="text" autocomplete="off"
														placeholder="请输入短信验证码" maxlength="8"
														class="el-input__inner">
													<!---->
													<!---->
													<!---->
													<!---->
												</div>
												<button type="button"
													class="el-button captcha-buttom el-button--primary">
													<!---->
													<!---->
													<span>获取验证码</span>
												</button>
												<span class="status"></span>
											</div>
											<div class="text clearfix">
												<p class="tips"></p>
											</div>
										</div>
										<div class="remember">
											<div class="remember-tool">
												<label><label data-v-5641f300=""
													class="remember-check checkbox-bwxr active"><input
														data-v-5641f300="" type="checkbox"></label> 记住我 <span>不是自己的电脑上不要勾选此项</span></label>
												<div>
													<a target="_blank"
														href="//passport.bilibili.com/register/findpassword.html#/verify?gourl=https://www.bilibili.com/"
														class="forget-password">忘记密码?</a>
												</div>
											</div>
											<!---->
											<!---->
										</div>
										<div class="btn-box">

											<a href="###" id="a" class="btn btn-login">登录</a> <a
												href="Ezb_register.jsp" id="regbtu2" class="btn btn-reg">注册</a>
										</div>
										<div class="sns">
											<a class="btn weibo">微博账号登录</a> <a class="btn qq">QQ账号登录</a>
										</div>
										<!---->
									</div>
								</div>
								<!---->
							</div>
						</form>
					</div>
				</div>
				<p data-v-2c844fd9="">
					登录即代表你同意<a data-v-2c844fd9="" target="_blank"
						href="https://www.bilibili.com/protocal/licence.html">用户协议</a>和<a
						data-v-2c844fd9="" target="_blank"
						href="https://www.bilibili.com/blackboard/privacy-pc.html">隐私政策</a>
				</p>
			</div>

		</div>
	</div>
	<script type="text/javascript">
		$('#a').on('click', function() {
			// 获得账户名
			var username = document.getElementById("login-username").value;
			// 获得密码
			var passwd = document.getElementById("login-passwd").value;
			if(username==""&&passwd==""){
				alert("输入账户名或密码");
			}else{
				$
				.ajax({
					// key: value
					//url	规定发送请求的 URL。默认是当前页面。
					url : 'ajaxuser.do?op=login',
					//data	规定要发送到服务器的数据。
					data : {
						"username" : username,
						"passwd" : passwd
					},
					//type	规定请求的类型（GET 或 POST）。
					type : 'post',
					//success(result,status,xhr)	当请求成功时运行的函数。
					// 获得0表示未收藏，1表示收藏
					success : function(n) {
						console.log(n);
						if(n==1){
							alert("账户或密码错误！");
						}else if(n==2){
							window.location.href="index.jsp";
						}else if(n==3){
							window.location.href="ezb/index.jsp";
						}
					}

				});
			}
		})
	</script>


</body>
</html>
